// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import Utils from "./Utils";

const {ccclass, property} = cc._decorator;

@ccclass
export default class GameDate extends cc.Component {


    arrBlockType: Array<Array<string>>

    arrPos: Array<Array<cc.Vec2>>

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        Utils.GlobalMount('gameDate', this)
        this.arrBlockType = [
            ["1_3", "3_1", "2_1", "3_1", "1_3", "1_2", "2_1"],
            ["1_2", "1_3", "2_1", "1_2", "3_1", "1_2", "2_1"],
            ["1_2", "1_3", "2_1", "1_3", "1_2", "2_1"],
            ['3_1','1_3','2_1','1_2','1_2','2_1'],
            ['1_2','1_3','3_1','2_1','2_1','2_1','1_2'],
            ['3_1','1_3','2_1','1_2','2_1'],
            ['1_2','1_2','2_1','3_1','2_1','2_1','2_1','2_1'],
            ['1_2','2_1','1_3','2_1','1_3','2_1'],
            ['1_2','2_1','2_1','1_2','3_1','1_3','1_3','2_1'],
            ['1_3','2_1','2_1','3_1','1_3','1_3','2_1','2_1','3_1','3_1','2_1','1_2']
        ]
        this.arrPos = [
            [cc.v2(5, 2),cc.v2(1, 5),cc.v2(3, 4),cc.v2(2, 0),cc.v2(3, 1),cc.v2(1, 1),cc.v2(0, 3)],
            [cc.v2(0, 2),cc.v2(3, 2),cc.v2(1, 3),cc.v2(1, 1),cc.v2(2, 5),cc.v2(4, 1),cc.v2(4, 4)],
            [cc.v2(3, 3),cc.v2(2, 2),cc.v2(2, 1),cc.v2(5, 1),cc.v2(5, 4),cc.v2(0, 3)],
            [cc.v2(0, 5),cc.v2(3, 1),cc.v2(1, 1),cc.v2(4, 0),cc.v2(5, 3),cc.v2(0, 3)],
            [cc.v2(3, 4),cc.v2(5, 1),cc.v2(3, 0),cc.v2(3, 1),cc.v2(0, 5),cc.v2(0, 3),cc.v2(1, 1)],
            [cc.v2(0, 4),cc.v2(4, 2),cc.v2(4, 1),cc.v2(2, 2),cc.v2(0, 3)],
            [cc.v2(3, 3),cc.v2(5, 3),cc.v2(3, 5),cc.v2(3, 2),cc.v2(0, 0),cc.v2(0, 1),cc.v2(0, 3),cc.v2(0, 5)],
            [cc.v2(0, 3),cc.v2(4, 2),cc.v2(4, 3),cc.v2(1, 3),cc.v2(2, 0),cc.v2(0, 0)],
            [cc.v2(2, 4),cc.v2(0, 4),cc.v2(0, 3),cc.v2(1, 0),cc.v2(2, 0),cc.v2(4, 2),cc.v2(5, 0),cc.v2(2, 2)],
            [cc.v2(0, 3),cc.v2(3, 5),cc.v2(1, 5),cc.v2(1, 4),cc.v2(2, 0),cc.v2(1, 1),cc.v2(0, 0),cc.v2(3, 0),cc.v2(3, 2),cc.v2(3, 1),cc.v2(2, 3),cc.v2(4, 3)]


        ]
    }

    start () {

    }

    // update (dt) {}
}
